@extends('Common.Views.main')
@section('css')
    <link rel="stylesheet" type="text/css" href="{{ asseturl('css/plug/plug.css') }}">
@stop
@section('content')
    <div class="layui-body">
        <div class=" layui-tab-brief">
            <div class="layui-breadcrumb-box">
                {{adminNav($thisAction)}}
            </div>
        </div>
        <!-- 内容主体区域 -->
        <div id="mainbox" class="layui-row">
            <blockquote class="site-text layui-elem-quote">
                <form class="layui-form" action="">
                    <div class="layui-inline">
                        <select id="state" name="state" lay-filter="state" placeholder="">
                            <option value="">用户状态</option>
                            <option value="1">正常</option>
                            <option value="2">黑名单</option>
                        </select>
                    </div>
                    <div class="layui-inline">
                        <input type="text" name="keyword" value="" class="layui-input" placeholder="请输入搜索关键词">
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formSearch"><i class="layui-icon">&#xe615;</i>搜索</button>
                        <button type="reset" class="layui-btn layui-btn-warm reset"><i class="layui-icon">&#x1006;</i>重置</button>
                        @if(actionIsView("add_users"))
                            <a href="javascript:;" data-method="add" class="layui-btn handle"><i class="layui-icon">&#xe61f;</i>添加用户</a>
                        @endif
                    </div>
                </form>
            </blockquote>
            <div class="layui-tab layui-tab-brief" lay-filter="plugTab">
                <ul class="layui-tab-title">
                    <li class="layui-this">已安装插件({{$installedCount}})</li>
                    <li>插件中心({{$plugCount}})</li>
                </ul>
                <div class="layui-tab-content plug-box">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-row layui-col-space10" id="myPlug">

                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-row layui-col-space10" id="plug">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop
@section("javascript")
    <script>
        //向js端传递授权信息
        is_edit = "{{actionIsView("edit_users")}}";
        is_blacklist = "{{actionIsView("blacklist_users")}}";
        //console.log(is_blacklist);
    </script>
    <script src="{{asseturl("js/plug/plug.js")}}"></script>
@stop
